package com.dome.Thread1;

public class TicketTest {
    public static void main(String[] args) {
        Ticket t=new Ticket();
        Thread t1=new Thread(t);
        Thread t2=new Thread(t);
        Thread t3=new Thread(t);
          t1.setName("窗口一");
          t3.setName("窗口二");
          t2.setName("窗口三");
          t1.start();
          t2.start();
          t3.start();
    }
}
